<?
require_once( '../includes/init.php');
//print_r($_POST);
$siteObj=alps::newClass('mod_site','mod');
extract($_POST);
if ($view==1) {
$tplInfo = $siteObj->getTpl($template_id);                                                         //得到模板
$tplpath=$tplInfo['temppath'];
$smarty->assign('backaddress',$_SERVER['HTTP_HOST']);
$smarty->assign('siteInfo',$_POST);
$smarty->display($tplpath.'preview.html'); 
}
?>